package com.kang.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * 物品分类实体类
 * 
 * @author zs614
 *
 */
public class Category implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 主键
	 */
	private Integer categoryid;

	/**
	 * 物品分类编号
	 */
	private String categorycode;

	/**
	 * 分类名称
	 */
	private String categoryname;

	/**
	 * 描述
	 */
	private String description;

	/**
	 * 上一次分类ID
	 */
	private Integer firstid;

	/**
	 * 级别
	 */
	private Integer secondid;

	/**
	 * 创建时间
	 */
	private Date createtime;

	/**
	 * 创建人
	 */
	private Integer createpersonid;

	/**
	 * 创建人名称
	 */
	private String name;

	public Integer getCategoryid() {
		return categoryid;
	}

	public void setCategoryid(Integer categoryid) {
		this.categoryid = categoryid;
	}

	public String getCategorycode() {
		return categorycode;
	}

	public void setCategorycode(String categorycode) {
		this.categorycode = categorycode == null ? null : categorycode.trim();
	}

	public String getCategoryname() {
		return categoryname;
	}

	public void setCategoryname(String categoryname) {
		this.categoryname = categoryname == null ? null : categoryname.trim();
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description == null ? null : description.trim();
	}

	public Integer getFirstid() {
		return firstid;
	}

	public void setFirstid(Integer firstid) {
		this.firstid = firstid;
	}

	public Integer getSecondid() {
		return secondid;
	}

	public void setSecondid(Integer secondid) {
		this.secondid = secondid;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Integer getCreatepersonid() {
		return createpersonid;
	}

	public void setCreatepersonid(Integer createpersonid) {
		this.createpersonid = createpersonid;
	}

	@Override
	public String toString() {
		return "Category [categoryid=" + categoryid + ", categorycode=" + categorycode + ", categoryname="
				+ categoryname + ", description=" + description + ", firstid=" + firstid + ", secondid=" + secondid
				+ ", createtime=" + createtime + ", createpersonid=" + createpersonid + ", name=" + name + "]";
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}